package com.scvtc.domain.entity.party;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("党员材料")
@TableName(" party_political_study")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class PartyStudy {

    @TableId
    private Integer id;


    @ApiModelProperty(value = "教师外键")
    private String teacherId;
    @ApiModelProperty(value = "学生外键")
    private String studentId;
    @ApiModelProperty(value = "学习日期")
    private String studyDate;
    @ApiModelProperty(value = "学习主题")
    private String studySubject;
    @ApiModelProperty(value = "学习主持人")
    private String studyHost;
    @ApiModelProperty(value = "备注")
    private String studyDescription;
    @ApiModelProperty(value = "链接")
    private String linkUrl;


    /**
     * 教师姓名
     */
    @ApiModelProperty(value = "名称",hidden = true)
    @TableField(exist = false)
    private String teacherName;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别", hidden = true)
    @TableField(exist = false)
    private String teacherGender;

    /**
     * 部门
     */
    @ApiModelProperty(value = "部门", hidden = true)
    @TableField(exist = false)
    private String teacherDepartment;
}
